package com.bytedy.sboot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import com.bytedy.sboot.support.CustomHandlerExceptionResolver;

@EnableWebMvc
@Configuration
public class WebConfig {

    @Bean
    public HandlerExceptionResolver handlerExceptionResolver() {
        return new CustomHandlerExceptionResolver();
    }

}
